package cz.artin.gemini.web;

import java.io.Serializable;
import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.inject.Named;

import cz.artin.gemini.admin.api.AdminService;
import cz.artin.gemini.shared.domain.admin.User;

@Named
@Stateless
public class Bean1 implements Serializable {
	private static final long serialVersionUID = -8925930600354318691L;

	@EJB(lookup="java:global/gemini.admin.core/AdminServiceImpl!cz.artin.gemini.admin.api.AdminService")
	private AdminService adminService;
	
	public List<User> getUsers() {
		List<User> result = adminService.listUsers();
		return result;
	}
	
}
